package script.topmenu
{
	import laya.events.Event;
	
	import script.ViewManager;
	import script.baseView.BaseViewController;
	
	import ui.prefab.TopMenuUI;
	
	public class TopMenuController extends BaseViewController
	{
		private var uiSkin:TopMenuUI;
		
		public function TopMenuController()
		{
			super();
		}
		
		override public function onStart():void
		{
			uiSkin = this.owner as TopMenuUI;
			
			uiSkin.backbtn.on(Event.CLICK,this,onbackview);
		}
		
		private function onbackview():void
		{
			ViewManager.instance.closeCurrentView();
		}
	}
}